from password_generator import PasswordGenerator
from fastapi import APIRouter

router = APIRouter(
    prefix="/api",
    tags=["api"],
)


@router.get("/generate_password")
async def generate_password(length: int, complexity: int, exclude: str = "") -> str:
    return await PasswordGenerator.generate(length, complexity, exclude)
